500
How can I filter items for dates before a specified date

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
var_Column = oTree.Columns.Add("Dates")
	var_Column.SortType = 2
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = true
	var_Column.DisplayFilterDate = true
	var_Column.FilterList = 1026 /*exShowFocusItem | exNoItems*/
	var_Column.Filter = "to 12/27/2010"
	var_Column.FilterType = 4
var_Items = oTree.Items
	var_Items.AddItem(2010-12-27)
	var_Items.AddItem(2010-12-28)
	var_Items.AddItem(2010-12-29)
	var_Items.AddItem(2010-12-30)
	var_Items.AddItem(2010-12-31)
oTree.ApplyFilter()
oTree.EndUpdate()

499
Is it possible to filter dates

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
var_Column = oTree.Columns.Add("Dates")
	var_Column.SortType = 2
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = true
	var_Column.DisplayFilterDate = true
	var_Column.FilterList = 1026 /*exShowFocusItem | exNoItems*/
var_Items = oTree.Items
	var_Items.AddItem(2010-12-27)
	var_Items.AddItem(2010-12-28)
	var_Items.AddItem(2010-12-29)
	var_Items.AddItem(2010-12-30)
	var_Items.AddItem(2010-12-31)
oTree.EndUpdate()

498
Is it possible to change the Exclude field name to something different, in the drop down filter window

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Description(25,"Leaving out")
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = false
	var_Column.FilterList = 9472 /*exShowExclude | exShowFocusItem | exShowCheckBox*/
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
oTree.EndUpdate()

497
How can I display the Exclude field in the drop down filter window

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = false
	var_Column.FilterList = 9472 /*exShowExclude | exShowFocusItem | exShowCheckBox*/
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
oTree.EndUpdate()

496
Is it possible to show and ensure the focused item from the control, in the drop down filter window

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = false
	var_Column.FilterList = 1280 /*exShowFocusItem | exShowCheckBox*/
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.SelectItem(var_Items.InsertItem(h,,"Child 2"),true)
	var_Items.ExpandItem(h,true)
oTree.EndUpdate()

495
Is it possible to show only blanks items with no listed items from the control

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = false
	var_Column.FilterList = 16386 /*exShowBlanks | exNoItems*/
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
oTree.EndUpdate()

494
How can I include the blanks items in the drop down filter window

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = false
	var_Column.FilterList = 16640 /*exShowBlanks | exShowCheckBox*/
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
oTree.EndUpdate()

493
How can I select multiple items in the drop down filter window, using check-boxes

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = false
	var_Column.FilterList = 256
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
oTree.EndUpdate()

492
Is it possible to allow a single item being selected in the drop down filter window

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = false
	var_Column.FilterList = 128
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
oTree.EndUpdate()

491
How can I display no (All) item in the drop down filter window

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Description(0,"")
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = true
	var_Column.FilterList = 2
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
oTree.EndUpdate()

490
Is it possible to display no items in the drop down filter window, so only the pattern is visible

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Items")
	var_Column.DisplayFilterButton = true
	var_Column.DisplayFilterPattern = true
	var_Column.FilterList = 2
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
oTree.EndUpdate()

489
How do I hide the selection

OleObject oTree,var_Column,var_Columns,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.MarkSearchColumn = false
oTree.SelForeColor = oTree.ForeColor
oTree.SelBackColor = oTree.BackColor
oTree.ShowFocusRect = false
var_Columns = oTree.Columns
	var_Column = var_Columns.Add("Format")
		var_Column.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=0000FF>+'+(value format '2|.|3|,' ): '0.00') )"
		var_Column.Def(17,1)
var_Items = oTree.Items
	var_Items.AddItem(10)
	var_Items.AddItem(-8)
oTree.EndUpdate()

488
How do I access the cells, or how do I get the values in the columns
OleObject oTree,var_Columns,var_Items
any h

oTree = ole_1.Object
var_Columns = oTree.Columns
	var_Columns.Add("C1")
	var_Columns.Add("C2")
	var_Columns.Add("C3")
var_Items = oTree.Items
	h = var_Items.AddItem("Item 1")
	var_Items.CellCaption(h,1,"SubItem 1.1")
	var_Items.CellCaption(h,2,"SubItem 1.2")
	MessageBox("Information",string( String(var_Items.CellCaption(h,0)) ))

487
Is it possible to load child items when clicking the +/- button

/*begin event BeforeExpandItem(long  Item,any  Cancel) - Fired before an item is about to be expanded (collapsed).*/
/*
	OleObject var_Items
	oTree = ole_1.Object
	var_Items = oTree.Items
		var_Items.InsertItem(Item,,"new")
		var_Items.ItemHasChildren(var_Items.InsertItem(Item,,"new"),true)
		var_Items.InsertItem(Item,,"new")
*/
/*end event BeforeExpandItem*/

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.LinesAtRoot = -1
oTree.Columns.Add("Default")
var_Items = oTree.Items
	var_Items.ItemHasChildren(var_Items.AddItem("aka"),true)
	var_Items.AddItem("next item")

486
How can I change the check-boxes appearance

OleObject oTree,var_Appearance,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("Default")
	var_Column.Def(0,true)
	var_Column.PartialCheck = true
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
var_Appearance = oTree.VisualAppearance
	var_Appearance.Add(1,"XP:Button 3 12")
	var_Appearance.Add(2,"XP:Button 3 11")
	var_Appearance.Add(3,"XP:Button 3 10")
oTree.CheckImage(0,16777216)
oTree.CheckImage(1,33554432)
oTree.CheckImage(2,50331648)

485
How can I initiate the OLE Drag and Drop support

/*begin event OLEStartDrag(oleobject  Data,long  AllowedEffects) - Occurs when the OLEDrag method is called.*/
/*
	Data.SetData("data to drag")
	oTree = ole_1.Object
	AllowedEffects = 1
*/
/*end event OLEStartDrag*/

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.OLEDropMode = 1
oTree.LinesAtRoot = -1
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)

484
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)

OleObject oTree,var_Columns,var_ConditionalFormat,var_ConditionalFormat1,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
var_ConditionalFormat = oTree.ConditionalFormats.Add("1","K1")
	var_ConditionalFormat.BackColor = RGB(255,0,0)
	var_ConditionalFormat.ApplyTo = 1 /*0x1 | */
var_ConditionalFormat1 = oTree.ConditionalFormats.Add("1","K2")
	var_ConditionalFormat1.BackColor = RGB(255,0,0)
	var_ConditionalFormat1.ApplyTo = 2 /*0x2 | */
oTree.MarkSearchColumn = false
oTree.DrawGridLines = -2
var_Columns = oTree.Columns
	var_Columns.Add("Column 1")
	var_Columns.Add("Column 2")
	var_Columns.Add("Column 3")
var_Items = oTree.Items
	var_Items.AddItem()
	var_Items.AddItem()
	var_Items.AddItem()
oTree.EndUpdate()

483
Is it possible to display empty strings for 0 values

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Currency").FormatColumn = "dbl(value) ? currency(dbl(value)) : ``"
var_Items = oTree.Items
	var_Items.AddItem(1.23)
	var_Items.AddItem(2.34)
	var_Items.AddItem(0)
	var_Items.AddItem(10000.99)

482
Is it possible to display empty strings for 0 values

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Number")
oTree.Columns.Add("Currency").ComputedField = "%0 ? currency(%0) : ``"
var_Items = oTree.Items
	var_Items.AddItem(1.23)
	var_Items.AddItem(2.34)
	var_Items.AddItem(0)
	var_Items.AddItem(10000.99)

481
How can I get the list of items as they are displayed
OleObject oTree,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.BackColorAlternate = RGB(240,240,240)
oTree.Columns.Add("Names")
var_Items = oTree.Items
	var_Items.AddItem("Mantel")
	var_Items.AddItem("Mechanik")
	var_Items.AddItem("Motor")
	var_Items.AddItem("Murks")
	var_Items.AddItem("Märchen")
	var_Items.AddItem("Möhren")
	var_Items.AddItem("Mühle")
oTree.Columns.Item(0).SortOrder = 1
oTree.EndUpdate()
MessageBox("Information",string( String(oTree.GetItems(1)) ))

480
Is posible to reduce the size of the picture to be shown in the column's caption

OleObject oTree

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.HTMLPicture("pic1","c:\exontrol\images\zipdisk.gif")
oTree.HeaderHeight = 48
oTree.Columns.Add("DefaultSize").HTMLCaption = "Default-Size <img>pic1</img> Picture"
oTree.Columns.Add("CustomSize").HTMLCaption = "Custom-Size <img>pic1:16</img> Picture"
oTree.EndUpdate()

479
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column

OleObject oTree,var_Column,var_ConditionalFormat,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.MarkSearchColumn = false
var_ConditionalFormat = oTree.ConditionalFormats.Add("1")
	var_ConditionalFormat.Bold = true
	var_ConditionalFormat.ForeColor = RGB(255,0,0)
	var_ConditionalFormat.ApplyTo = 1 /*0x1 | */
oTree.Columns.Add("C1")
var_Column = oTree.Columns.Add("C2")
	var_Column.HeaderBold = true
	var_Column.HTMLCaption = "<fgcolor=FF0000>C2"
var_Items = oTree.Items
	var_Items.CellCaption(var_Items.AddItem(10),1,11)
	var_Items.CellCaption(var_Items.AddItem(12),1,13)
oTree.EndUpdate()

478
The item is not getting selected when clicking the cell's checkbox. What should I do

/*begin event CellStateChanged(long  Item,long  ColIndex) - Fired after cell's state has been changed.*/
/*
	oTree = ole_1.Object
	oTree.Items.SelectItem(Item,true)
*/
/*end event CellStateChanged*/

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Check").Def(0,true)
var_Items = oTree.Items
	var_Items.AddItem(0)
	var_Items.AddItem(1)
	var_Items.AddItem(2)
	var_Items.AddItem(3)

477
Is it possible to limit the height of the item while resizing

/*begin event AddItem(long  Item) - Occurs after a new Item has been inserted to Items collection.*/
/*
	oTree = ole_1.Object
	oTree.Items.ItemMinHeight(Item,18)
	oTree.Items.ItemMaxHeight(Item,72)
*/
/*end event AddItem*/

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ItemsAllowSizing = -1
oTree.ScrollBySingleLine = false
oTree.BackColorAlternate = RGB(240,240,240)
oTree.Columns.Add("Names")
var_Items = oTree.Items
	var_Items.AddItem("Mantel")
	var_Items.AddItem("Mechanik")
	var_Items.AddItem("Motor")
	var_Items.AddItem("Murks")
	var_Items.AddItem("Märchen")
	var_Items.AddItem("Möhren")
	var_Items.AddItem("Mühle")
oTree.Columns.Item(0).SortOrder = 1
oTree.EndUpdate()

476
Is it possible to copy the hierarchy of the control using the GetItems method

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = -1
oTree.Columns.Add("Def")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
oTree.PutItems(oTree.GetItems(-1))

475
How can I show the child items with no identation

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = 5
oTree.Indent = 12
oTree.HasLines = 2
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")

474
Is there other ways of showing the hierarchy lines (exGroupLinesAtRoot)

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = 1
oTree.Indent = 12
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)

473
Is there other ways of showing the hierarchy lines (exGroupLinesOutside)

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = 5
oTree.Indent = 12
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")

472
Is there other ways of showing the hierarchy lines (exGroupLinesInsideLeaf)

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = 4
oTree.Indent = 12
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)

471
Is there other ways of showing the hierarchy lines (exGroupLinesInside)

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = 3
oTree.Indent = 12
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)

470
Is there other ways of showing the hierarchy lines (exGroupLines)

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.LinesAtRoot = 2
oTree.Indent = 12
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(var_Items.InsertItem(h,,"Child 2"),,"SubChild 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)

469
Does your control supports multiple lines tooltip

OleObject oTree

oTree = ole_1.Object
oTree.HTMLPicture("pic1","c:\exontrol\images\zipdisk.gif")
oTree.ToolTipDelay = 1
oTree.Columns.Add("tootip").ToolTip = "<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The tooltip supports built-in HTML tags, icons and pictures.<br><br><br><img>pic1</img> picture ... <br><br>"

468
How can I prevent highlighting the column from the cursor - point

OleObject oTree

oTree = ole_1.Object
oTree.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJgEgI=")
oTree.Background(32,16777216 /*0x1000000*/)
oTree.Columns.Add("S").Width = 32
oTree.Columns.Add("Level 1").LevelKey = 1
oTree.Columns.Add("Level 2").LevelKey = 1
oTree.Columns.Add("Level 3").LevelKey = 1
oTree.Columns.Add("E1").Width = 32
oTree.Columns.Add("E2").Width = 32
oTree.Columns.Add("E3").Width = 32
oTree.Columns.Add("E4").Width = 32

467
Is there any option to show the tooltip programmatically

/*begin event MouseMove(integer  Button,integer  Shift,long  X,long  Y) - Occurs when the user moves the mouse.*/
/*
	oTree = ole_1.Object
	oTree.ShowToolTip(String(oTree.ItemFromPoint(-1,-1,c,hit)),"","8","8")
*/
/*end event MouseMove*/

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.Columns.Add("Def")
var_Items = oTree.Items
	var_Items.AddItem("Item 1")
	var_Items.AddItem("Item 2")
	var_Items.AddItem("Item 3")
oTree.EndUpdate()

466
Is it possible to prevent changing the rows/items colors by selection

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.SelBackMode = 1
oTree.Columns.Add("HTML").Def(17,1)
var_Items = oTree.Items
	var_Items.AddItem("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.")
	var_Items.SelectItem(var_Items.AddItem("<font ;6>This</font> <b>is</b> another <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>."),true)

465
Is it possible to specify the cell's value but still want to display some formatted text instead the value

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.MarkSearchColumn = false
oTree.Columns.Add("Value")
oTree.Columns.Add("FormatCell")
var_Items = oTree.Items
	h = var_Items.AddItem(1)
	var_Items.CellCaption(h,1,12)
	var_Items.FormatCell(h,1,"currency(value)")
	h = var_Items.AddItem(2001-01-01)
	var_Items.CellCaption(h,1,2001-01-01)
	var_Items.CellCaptionFormat(h,1,1)
	var_Items.FormatCell(h,1,"longdate(value) replace '2001' with '<b>2001</b>'")
oTree.EndUpdate()

464
How can I simulate displaying groups

OleObject oTree,var_Columns,var_Items
any h,h1

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.HasLines = 0
oTree.ScrollBySingleLine = true
oTree.MarkSearchColumn = false
var_Columns = oTree.Columns
	var_Columns.Add("Name")
	var_Columns.Add("A")
	var_Columns.Add("B")
	var_Columns.Add("C")
var_Items = oTree.Items
	h = var_Items.AddItem("Group 1")
	var_Items.CellHAlignment(h,0,1)
	var_Items.ItemDivider(h,0)
	var_Items.ItemDividerLineAlignment(h,3)
	var_Items.ItemHeight(h,24)
	var_Items.SortableItem(h,false)
	h1 = var_Items.InsertItem(h,,"Child 1")
	var_Items.CellCaption(h1,1,1)
	var_Items.CellCaption(h1,2,2)
	var_Items.CellCaption(h1,3,3)
	h1 = var_Items.InsertItem(h,,"Child 2")
	var_Items.CellCaption(h1,1,4)
	var_Items.CellCaption(h1,2,5)
	var_Items.CellCaption(h1,3,6)
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("Group 2")
	var_Items.CellHAlignment(h,0,1)
	var_Items.ItemDivider(h,0)
	var_Items.ItemDividerLineAlignment(h,3)
	var_Items.ItemHeight(h,24)
	var_Items.SortableItem(h,false)
	h1 = var_Items.InsertItem(h,,"Child 1")
	var_Items.CellCaption(h1,1,1)
	var_Items.CellCaption(h1,2,2)
	var_Items.CellCaption(h1,3,3)
	h1 = var_Items.InsertItem(h,,"Child 2")
	var_Items.CellCaption(h1,1,4)
	var_Items.CellCaption(h1,2,5)
	var_Items.CellCaption(h1,3,6)
	var_Items.ExpandItem(h,true)
oTree.EndUpdate()

463
How can I collapse all items

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Columns.Add("Items")
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(0,false)
oTree.EndUpdate()

462
How can I expand all items

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Columns.Add("Items")
var_Items = oTree.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(0,true)
oTree.EndUpdate()

461
Can I use PNG images to display pictures in the control

OleObject oTree

oTree = ole_1.Object
oTree.HTMLPicture("pic1","c:\exontrol\images\card.png")
oTree.HeaderHeight = 48
oTree.Columns.Add("ColumnName").HTMLCaption = "<b>HTML</b> Column <img>pic1</img> Picture"

460
Is it possible to move an item from a parent to another

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Columns.Add("Items")
var_Items = oTree.Items
	var_Items.AddItem("A")
	var_Items.AddItem("B")
	var_Items.InsertItem(var_Items.AddItem("C"),"","D")
	var_Items.SetParent(var_Items.FindItem("D",0),var_Items.FindItem("A",0))
oTree.EndUpdate()

459
How can I change the identation for an item

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Columns.Add("Items")
var_Items = oTree.Items
	var_Items.AddItem("A")
	var_Items.AddItem("B")
	var_Items.InsertItem(var_Items.AddItem("C"),"","D")
	var_Items.SetParent(var_Items.FindItem("D",0),0)
oTree.EndUpdate()

458
How can I filter programatically using more columns

OleObject oTree,var_Column,var_Column1,var_Columns,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.MarkSearchColumn = false
var_Columns = oTree.Columns
	var_Columns.Add("Car")
	var_Columns.Add("Equipment")
var_Items = oTree.Items
	var_Items.CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag")
	var_Items.CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition")
	var_Items.CellCaption(var_Items.AddItem("Ford"),1,"Air condition")
	var_Items.CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP")
	var_Items.CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP")
	var_Items.CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP")
var_Column = oTree.Columns.Item("Car")
	var_Column.FilterType = 240
	var_Column.Filter = "Mazda"
var_Column1 = oTree.Columns.Item("Equipment")
	var_Column1.FilterType = 3
	var_Column1.Filter = "*ABS*|*ESP*"
oTree.ApplyFilter()
oTree.EndUpdate()

457
Is it possible to colour a particular column, I mean the cell's foreground color

OleObject oTree,var_Columns,var_ConditionalFormat,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
var_ConditionalFormat = oTree.ConditionalFormats.Add("1")
	var_ConditionalFormat.ForeColor = RGB(255,0,0)
	var_ConditionalFormat.ApplyTo = 1 /*0x1 | */
oTree.MarkSearchColumn = false
var_Columns = oTree.Columns
	var_Columns.Add("Column 1")
	var_Columns.Add("Column 2")
var_Items = oTree.Items
	var_Items.CellCaption(var_Items.AddItem(0),1,1)
	var_Items.CellCaption(var_Items.AddItem(2),1,3)
	var_Items.CellCaption(var_Items.AddItem(4),1,5)
oTree.EndUpdate()

456
Is it possible to colour a particular column for specified values

OleObject oTree,var_Columns,var_ConditionalFormat,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
var_ConditionalFormat = oTree.ConditionalFormats.Add("int(%1) in (3,4,5)")
	var_ConditionalFormat.BackColor = RGB(255,0,0)
	var_ConditionalFormat.ApplyTo = 1 /*0x1 | */
oTree.MarkSearchColumn = false
var_Columns = oTree.Columns
	var_Columns.Add("Column 1")
	var_Columns.Add("Column 2")
var_Items = oTree.Items
	var_Items.CellCaption(var_Items.AddItem(0),1,1)
	var_Items.CellCaption(var_Items.AddItem(2),1,3)
	var_Items.CellCaption(var_Items.AddItem(4),1,5)
oTree.EndUpdate()

455
Is it possible to colour a particular column

OleObject oTree,var_Columns,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.MarkSearchColumn = false
var_Columns = oTree.Columns
	var_Columns.Add("Column 1")
	var_Columns.Add("Column 2").Def(4,255)
var_Items = oTree.Items
	var_Items.CellCaption(var_Items.AddItem(0),1,1)
	var_Items.CellCaption(var_Items.AddItem(2),1,3)
	var_Items.CellCaption(var_Items.AddItem(4),1,5)
oTree.EndUpdate()

454
How do i get all the children items that are under a certain parent Item handle
OleObject oTree,var_Items,var_Items1
any h,hChild

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Columns.Add("P")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
var_Items1 = oTree.Items
	hChild = var_Items1.ItemChild(var_Items1.FirstVisibleItem)
	MessageBox("Information",string( String(var_Items1.CellCaption(hChild,0)) ))
	MessageBox("Information",string( String(var_Items1.CellCaption(var_Items1.NextSiblingItem(hChild),0)) ))
oTree.EndUpdate()

453
How can I get the caption of focused item
/*begin event SelectionChanged() - Fired after a new item has been selected.*/
/*
	OleObject var_Items
	oTree = ole_1.Object
	var_Items = oTree.Items
		MessageBox("Information",string( "Handle" ))
		MessageBox("Information",string( String(var_Items.FocusItem) ))
		MessageBox("Information",string( "Caption" ))
		MessageBox("Information",string( String(var_Items.CellCaption(var_Items.FocusItem,0)) ))
*/
/*end event SelectionChanged*/

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Columns.Add("Items")
var_Items = oTree.Items
	h = var_Items.AddItem("R1")
	var_Items.InsertItem(h,,"Cell 1.1")
	var_Items.InsertItem(h,,"Cell 1.2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("R2")
	var_Items.InsertItem(h,,"Cell 2.1")
	var_Items.InsertItem(h,,"Cell 2.2")
	var_Items.ExpandItem(h,true)
oTree.EndUpdate()

452
How can I get the caption of selected item
/*begin event SelectionChanged() - Fired after a new item has been selected.*/
/*
	OleObject var_Items
	oTree = ole_1.Object
	var_Items = oTree.Items
		MessageBox("Information",string( "Handle" ))
		MessageBox("Information",string( String(var_Items.SelectedItem(0)) ))
		MessageBox("Information",string( "Caption" ))
		MessageBox("Information",string( String(var_Items.CellCaption(var_Items.SelectedItem(0),0)) ))
*/
/*end event SelectionChanged*/

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.LinesAtRoot = -1
oTree.Columns.Add("Items")
var_Items = oTree.Items
	h = var_Items.AddItem("R1")
	var_Items.InsertItem(h,,"Cell 1.1")
	var_Items.InsertItem(h,,"Cell 1.2")
	var_Items.ExpandItem(h,true)
	h = var_Items.AddItem("R2")
	var_Items.InsertItem(h,,"Cell 2.1")
	var_Items.InsertItem(h,,"Cell 2.2")
	var_Items.ExpandItem(h,true)
oTree.EndUpdate()

451
Can I display the cell's check box after the text

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
var_Column = oTree.Columns.Add("Column")
	var_Column.Def(0,true)
	var_Column.Def(34,"caption,check")
var_Items = oTree.Items
	var_Items.CellHasCheckBox(var_Items.AddItem("Caption 1"),0,true)
	var_Items.CellHasCheckBox(var_Items.AddItem("Caption 2"),0,true)

450
Can I change the order of the parts in the cell, as checkbox after the text, and so on

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oTree.Columns.Add("Column").Def(34,"caption,check,icon,icons,picture")
var_Items = oTree.Items
	h = var_Items.AddItem("Text")
	var_Items.CellImage(h,0,1)
	var_Items.CellHasCheckBox(h,0,true)

449
Can I have an image displayed after the text. Can I get that effect without using HTML content

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oTree.Columns.Add("Column").Def(34,"caption,icon,check,icons,picture")
var_Items = oTree.Items
	h = var_Items.AddItem("Text")
	var_Items.CellImage(h,0,1)

448
Does your control support RightToLeft property for RTL languages or right to left

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ScrollBars = 15
oTree.LinesAtRoot = -1
var_Column = oTree.Columns.Add("P1")
	var_Column.Def(0,true)
	var_Column.PartialCheck = true
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.ExpandItem(h,true)
oTree.RightToLeft = true
oTree.EndUpdate()

447
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

OleObject oTree,var_Columns

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ScrollBars = 15
var_Columns = oTree.Columns
	var_Columns.Add("C1")
	var_Columns.Add("C2")
	var_Columns.Add("C3")
	var_Columns.Add("C4")
	var_Columns.Add("C5")
	var_Columns.Add("C6")
	var_Columns.Add("C7")
	var_Columns.Add("C8")
oTree.RightToLeft = true
oTree.EndUpdate()

446
How can I use the CASE statement (CASE usage)

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.Columns.Add("Value").Width = 24
var_Column = oTree.Columns.Add("CASE - statment")
	var_Column.ComputedField = "%0 case (default:'not found';1:%0;2:2*%0;3:3*%0;4:4*%0;5:5*%0;7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen';14:'Fourtheen')"
	var_Column.ToolTip = var_Column.ComputedField
var_Items = oTree.Items
	var_Items.AddItem(0)
	var_Items.AddItem(1)
	var_Items.AddItem(2)
oTree.EndUpdate()

445
How can I use the CASE statement (CASE usage)

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.Columns.Add("Value").Width = 24
var_Column = oTree.Columns.Add("CASE - statment")
	var_Column.ComputedField = "%0 case (default:'not found';1:'One';2:'Two';3:'Three';4:'Four';5:'Five';7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen';14:'Fourtheen')"
	var_Column.ToolTip = var_Column.ComputedField
var_Items = oTree.Items
	var_Items.AddItem(0)
	var_Items.AddItem(1)
	var_Items.AddItem(2)
oTree.EndUpdate()

444
I have seen the IN function but it returns -1 or 0. How can I display the value being found ( SWITCH usage )

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.Columns.Add("Value").Width = 24
var_Column = oTree.Columns.Add("SWITCH - statment")
	var_Column.ComputedField = "%0 switch ('not found', 1,2,3,4,5,7,8,9,11,13,14)"
	var_Column.ToolTip = var_Column.ComputedField
var_Items = oTree.Items
	var_Items.AddItem(0)
	var_Items.AddItem(1)
	var_Items.AddItem(2)
oTree.EndUpdate()

443
I have a large collection of constant values and using or operator is a time consuming (IN usage). Is there any way to increase the speed to check if a value maches the collection

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.Columns.Add("Value").Width = 24
var_Column = oTree.Columns.Add("IN - statment")
	var_Column.ComputedField = "%0 in (1,2,3,4,5,7,8,9,11,13,14) ? 'found' : ''"
	var_Column.ToolTip = var_Column.ComputedField
var_Items = oTree.Items
	var_Items.AddItem(0)
	var_Items.AddItem(1)
	var_Items.AddItem(2)
oTree.EndUpdate()

442
Is is possible to use HTML tags to display in the filter caption

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.FilterBarPromptVisible = true
oTree.FilterBarCaption = "This is a bit of text being displayed in the filter bar."
oTree.Columns.Add("")
var_Items = oTree.Items
	var_Items.AddItem("Item 1")
	var_Items.AddItem("Item 2")
	var_Items.AddItem("Item 3")
oTree.EndUpdate()

441
How can I find the number of items after filtering
OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.Columns.Add("")
var_Items = oTree.Items
	h = var_Items.AddItem("")
	var_Items.CellCaption(h,0,var_Items.VisibleItemCount)
oTree.EndUpdate()

440
How can I change the filter caption

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 12801 /*exFilterPromptWords | exFilterPromptContainsAll*/
oTree.FilterBarPromptPattern = "london robert"
oTree.FilterBarCaption = "<r>Found: ... "
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

439
While using the filter prompt is it is possible to use wild characters

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 16
oTree.FilterBarPromptPattern = "lon* seat*"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

438
How can I list all items that contains any of specified words, not necessary at the beggining

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 4610 /*exFilterPromptStartWords | exFilterPromptContainsAny*/
oTree.FilterBarPromptPattern = "london davolio"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

437
How can I list all items that contains any of specified words, not strings

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 12802 /*exFilterPromptWords | exFilterPromptContainsAny*/
oTree.FilterBarPromptPattern = "london nancy"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

436
How can I list all items that contains all specified words, not strings

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 12801 /*exFilterPromptWords | exFilterPromptContainsAll*/
oTree.FilterBarPromptPattern = "london robert"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

435
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 258 /*exFilterPromptCaseSensitive | exFilterPromptContainsAny*/
oTree.FilterBarPromptPattern = "Anne"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

434
Is it possible to list only items that ends with any of specified strings

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 4
oTree.FilterBarPromptColumns = "0"
oTree.FilterBarPromptPattern = "Fuller"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

433
Is it possible to list only items that ends with any of specified strings

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 4
oTree.FilterBarPromptColumns = "0"
oTree.FilterBarPromptPattern = "Fuller"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

432
Is it possible to list only items that starts with any of specified strings

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 3
oTree.FilterBarPromptColumns = "0"
oTree.FilterBarPromptPattern = "An M"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

431
Is it possible to list only items that starts with specified string

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 3
oTree.FilterBarPromptColumns = "0"
oTree.FilterBarPromptPattern = "A"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

430
How can I specify that the list should include any of the seqeunces in the pattern

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 2
oTree.FilterBarPromptPattern = "london seattle"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

429
How can I specify that all sequences in the filter pattern must be included in the list

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptType = 1
oTree.FilterBarPromptPattern = "london manager"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

428
How do I change at runtime the filter prompt

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptPattern = "london manager"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

427
How do I specify to filter only a single column when using the filter prompt

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPromptColumns = "2,3"
oTree.FilterBarPromptPattern = "london"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

426
How do I change the prompt or the caption being displayed in the filter bar

OleObject oTree,var_Columns

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
oTree.FilterBarPrompt = "changed"
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
oTree.EndUpdate()

425
How do I enable the filter prompt feature

OleObject oTree,var_Columns,var_Items
any h0

oTree = ole_1.Object
oTree.BeginUpdate()
oTree.ColumnAutoResize = true
oTree.ContinueColumnScroll = false
oTree.MarkSearchColumn = false
oTree.SearchColumnIndex = 1
oTree.FilterBarPromptVisible = true
var_Columns = oTree.Columns
	var_Columns.Add("Name").Width = 96
	var_Columns.Add("Title").Width = 96
	var_Columns.Add("City")
var_Items = oTree.Items
	h0 = var_Items.AddItem("Nancy Davolio")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Andrew Fuller")
	var_Items.CellCaption(h0,1,"Vice President, Sales")
	var_Items.CellCaption(h0,2,"Tacoma")
	var_Items.SelectItem(h0,true)
	h0 = var_Items.AddItem("Janet Leverling")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Kirkland")
	h0 = var_Items.AddItem("Margaret Peacock")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"Redmond")
	h0 = var_Items.AddItem("Steven Buchanan")
	var_Items.CellCaption(h0,1,"Sales Manager")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Michael Suyama")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Robert King")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
	h0 = var_Items.AddItem("Laura Callahan")
	var_Items.CellCaption(h0,1,"Inside Sales Coordinator")
	var_Items.CellCaption(h0,2,"Seattle")
	h0 = var_Items.AddItem("Anne Dodsworth")
	var_Items.CellCaption(h0,1,"Sales Representative")
	var_Items.CellCaption(h0,2,"London")
oTree.EndUpdate()

424
I have an EBN file how can I apply different colors to it, so no need to create a new one

OleObject oTree,var_Items
any h,hC

oTree = ole_1.Object
oTree.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oTree.SelBackColor = oTree.BackColor
oTree.SelForeColor = oTree.ForeColor
oTree.HasLines = 0
oTree.Columns.Add("Default")
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	hC = var_Items.InsertItem(h,,"Default")
	var_Items.ItemBackColor(hC,16777216 /*0x1000000*/)
	var_Items.ItemHeight(var_Items.InsertItem(h,,""),6)
	hC = var_Items.InsertItem(h,,"Light Green")
	var_Items.ItemBackColor(hC,16842496 /*0x100ff00*/)
	var_Items.ItemHeight(var_Items.InsertItem(h,,""),6)
	hC = var_Items.InsertItem(h,,"Dark Green")
	var_Items.ItemBackColor(hC,16809728 /*0x1007f00*/)
	var_Items.ItemHeight(var_Items.InsertItem(h,,""),6)
	hC = var_Items.InsertItem(h,,"Magenta")
	var_Items.ItemBackColor(hC,33521663 /*0x1ff7fff*/)
	var_Items.ItemHeight(var_Items.InsertItem(h,,""),6)
	hC = var_Items.InsertItem(h,,"Yellow")
	var_Items.ItemBackColor(hC,25165823 /*0x17fffff*/)
	var_Items.ItemHeight(var_Items.InsertItem(h,,""),6)
	var_Items.ExpandItem(h,true)

423
How can I change the foreground color for a particular column

OleObject oTree,var_Columns

oTree = ole_1.Object
var_Columns = oTree.Columns
	var_Columns.Add("Column 1")
	var_Columns.Add("Column 2").Def(8,8439039)
	var_Columns.Add("Column 3")

422
How can I change the background color for a particular column

OleObject oTree,var_Columns

oTree = ole_1.Object
var_Columns = oTree.Columns
	var_Columns.Add("Column 1")
	var_Columns.Add("Column 2").Def(7,8439039)
	var_Columns.Add("Column 3")

421
How can I display the column using currency format and enlarge the font for certain values

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
var_Column = oTree.Columns.Add("Currency")
	var_Column.Def(17,1)
	var_Column.FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"
var_Items = oTree.Items
	var_Items.AddItem("1.23")
	var_Items.AddItem("2.34")
	var_Items.AddItem("9.94")
	var_Items.AddItem("11.94")
	var_Items.AddItem("1000")

420
How can I highlight only parts of the cells

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
var_Column = oTree.Columns.Add("")
	var_Column.Def(17,1)
	var_Column.FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)

419
How can I get the number of occurrences of a specified string in the cell

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.Columns.Add("")
var_Column = oTree.Columns.Add("occurrences")
	var_Column.ComputedField = "lower(%0) count 'o'"
	var_Column.FormatColumn = "'contains ' + value + ' of \'o\' chars'"
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1 oooof the root")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"Child 3")
	var_Items.ExpandItem(h,true)

418
How can I display dates in my format

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
var_Column = oTree.Columns.Add("Date")
	var_Column.Def(17,1)
	var_Column.FormatColumn = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'"
var_Items = oTree.Items
	var_Items.AddItem(2001-01-21)
	var_Items.AddItem(2002-02-22)
	var_Items.AddItem(2003-03-13)
	var_Items.AddItem(2004-04-24)

417
How can I display dates in short format

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Date").FormatColumn = "shortdate(value)"
var_Items = oTree.Items
	var_Items.AddItem(2001-01-01)
	var_Items.AddItem(2002-02-02)
	var_Items.AddItem(2003-03-03)
	var_Items.AddItem(2004-04-04)

416
How can I display dates in long format

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Date").FormatColumn = "longdate(value)"
var_Items = oTree.Items
	var_Items.AddItem(2001-01-01)
	var_Items.AddItem(2002-02-02)
	var_Items.AddItem(2003-03-03)
	var_Items.AddItem(2004-04-04)

415
How can I display only the right part of the cell

OleObject oTree,var_Column,var_Items
any h

oTree = ole_1.Object
oTree.Columns.Add("")
var_Column = oTree.Columns.Add("Right")
	var_Column.ComputedField = "%0 right 2"
	var_Column.FormatColumn = "'" + CHAR(34) + "' + value + '" + CHAR(34) + "'"
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"SChild 3")
	var_Items.ExpandItem(h,true)

414
How can I display only the left part of the cell

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.Columns.Add("")
oTree.Columns.Add("Left").ComputedField = "%0 left 2"
var_Items = oTree.Items
	h = var_Items.AddItem("Root")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	var_Items.InsertItem(h,,"SChild 3")
	var_Items.ExpandItem(h,true)

413
How can I display true or false instead 0 and -1

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Boolean").FormatColumn = "value != 0 ? 'true' : 'false'"
var_Items = oTree.Items
	var_Items.AddItem(true)
	var_Items.AddItem(false)
	var_Items.AddItem(true)
	var_Items.AddItem(0)
	var_Items.AddItem(1)

412
How can I display icons or images instead numbers

OleObject oTree,var_Column,var_Items

oTree = ole_1.Object
oTree.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Column = oTree.Columns.Add("Icons")
	var_Column.Def(17,1)
	var_Column.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value"
var_Items = oTree.Items
	var_Items.AddItem(1)
	var_Items.AddItem(2)
	var_Items.AddItem(3)

411
How can I display the column using currency

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Currency").FormatColumn = "currency(dbl(value))"
var_Items = oTree.Items
	var_Items.AddItem("1.23")
	var_Items.AddItem("2.34")
	var_Items.AddItem("0")
	var_Items.AddItem(5)
	var_Items.AddItem("10000.99")

410
How can I display the currency only for not empty cells

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Number")
oTree.Columns.Add("Currency").ComputedField = "len(%0) ? currency(dbl(%0)) : ''"
var_Items = oTree.Items
	var_Items.AddItem("1.23")
	var_Items.AddItem("2.34")
	var_Items.AddItem("0")
	var_Items.ItemBackColor(var_Items.AddItem(),RGB(255,128,128))
	var_Items.AddItem("10000.99")

409
Is there a function to display the number of days between two date including the number of hours

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.Columns.Add("Start").Width = 32
oTree.Columns.Add("End")
oTree.Columns.Add("Duration").ComputedField = "2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? ' and ' : '') + =:3 + ' hour(s)' : '' )"
var_Items = oTree.Items
	h = var_Items.AddItem(2001-01-11)
	var_Items.CellCaption(h,1,2001-01-14)
	h = var_Items.AddItem(DateTime(2002-02-22,12:00:00))
	var_Items.CellCaption(h,1,DateTime(2002-03-14,13:00:00))
	h = var_Items.AddItem(2003-03-13)
	var_Items.CellCaption(h,1,DateTime(2003-04-11,11:00:00))

408
Is there a function to display the number of days between two date including the number of hours

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.Columns.Add("Start")
oTree.Columns.Add("End")
oTree.Columns.Add("Duration").ComputedField = "" + CHAR(34) + "D " + CHAR(34) + " + int(date(%1)-date(%0)) + " + CHAR(34) + " H " + CHAR(34) + " + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))"
var_Items = oTree.Items
	h = var_Items.AddItem(2001-01-11)
	var_Items.CellCaption(h,1,DateTime(2001-01-14,23:00:00))
	h = var_Items.AddItem(DateTime(2002-02-22,12:00:00))
	var_Items.CellCaption(h,1,DateTime(2002-03-14,13:00:00))
	h = var_Items.AddItem(2003-03-13)
	var_Items.CellCaption(h,1,DateTime(2003-04-11,11:00:00))

407
How can I display the number of days between two dates

OleObject oTree,var_Items
any h

oTree = ole_1.Object
oTree.Columns.Add("Start")
oTree.Columns.Add("End")
oTree.Columns.Add("Duration").ComputedField = "(date(%1)-date(%0)) + ' days'"
var_Items = oTree.Items
	h = var_Items.AddItem(2001-01-11)
	var_Items.CellCaption(h,1,2001-01-14)
	h = var_Items.AddItem(2002-02-22)
	var_Items.CellCaption(h,1,2002-03-14)
	h = var_Items.AddItem(2003-03-13)
	var_Items.CellCaption(h,1,2003-04-11)

406
How can I get second part of the date

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Date")
oTree.Columns.Add("Second").ComputedField = "sec(date(%0))"
var_Items = oTree.Items
	var_Items.AddItem(DateTime(2001-01-11,10:10:00))
	var_Items.AddItem(DateTime(2002-02-22,11:01:22))
	var_Items.AddItem(DateTime(2003-03-13,12:23:01))
	var_Items.AddItem(DateTime(2004-04-14,13:11:59))

405
How can I get minute part of the date

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Date")
oTree.Columns.Add("Minute").ComputedField = "min(date(%0))"
var_Items = oTree.Items
	var_Items.AddItem(DateTime(2001-01-11,10:10:00))
	var_Items.AddItem(DateTime(2002-02-22,11:01:00))
	var_Items.AddItem(DateTime(2003-03-13,12:23:00))
	var_Items.AddItem(DateTime(2004-04-14,13:11:00))

404
How can I check the hour part only so I know it was afternoon

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.ConditionalFormats.Add("hour(%0)>=12").Bold = true
oTree.Columns.Add("Date")
oTree.Columns.Add("Hour").ComputedField = "hour(%0)"
var_Items = oTree.Items
	var_Items.AddItem(DateTime(2001-01-11,10:00:00))
	var_Items.AddItem(DateTime(2002-02-22,11:00:00))
	var_Items.AddItem(DateTime(2003-03-13,12:00:00))
	var_Items.AddItem(DateTime(2004-04-14,13:00:00))

403
What about a function to get the day in the week, or days since Sunday

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Date")
oTree.Columns.Add("WeekDay").ComputedField = "weekday(%0)"
var_Items = oTree.Items
	var_Items.AddItem(DateTime(2001-01-11,10:00:00))
	var_Items.AddItem(DateTime(2002-02-22,11:00:00))
	var_Items.AddItem(DateTime(2003-03-13,12:00:00))
	var_Items.AddItem(DateTime(2004-04-14,13:00:00))

402
Is there any function to get the day of the year or number of days since January 1st

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Date")
oTree.Columns.Add("Day since January 1st").ComputedField = "yearday(%0)"
var_Items = oTree.Items
	var_Items.AddItem(DateTime(2001-01-11,10:00:00))
	var_Items.AddItem(DateTime(2002-02-22,11:00:00))
	var_Items.AddItem(DateTime(2003-03-13,12:00:00))
	var_Items.AddItem(DateTime(2004-04-14,13:00:00))

401
How can I display only the day of the date

OleObject oTree,var_Items

oTree = ole_1.Object
oTree.Columns.Add("Date")
oTree.Columns.Add("Day").ComputedField = "day(%0)"
var_Items = oTree.Items
	var_Items.AddItem(DateTime(2001-01-11,10:00:00))
	var_Items.AddItem(DateTime(2002-02-22,11:00:00))
	var_Items.AddItem(DateTime(2003-03-13,12:00:00))
	var_Items.AddItem(DateTime(2004-04-14,13:00:00))